import { createWebHashHistory , createRouter } from 'vue-router'

import HomeView from '@/views/home/index.vue'
import CesiumHelloWorld from '@/views/cesium/index.vue'
import NotFound from '@/views/error/404.vue'

const routes = [
  { path: '/', redirect: '/CesiumHelloWorld', component: HomeView },
  { path: '/CesiumHelloWorld', component: CesiumHelloWorld },
  { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router